import streamlit as st

st.markdown("# Main page 🎈")
st.sidebar.markdown("# Main page 🎈")

st.button("Reset", type="primary")

if st.button("Home"):
    st.switch_page("main.py")
if st.button("Page 1"):
    st.switch_page("pages/1_按钮.py")
if st.button("Page 2"):
    st.switch_page("pages/10_🎈_图片显示.py")

st.page_link("pages/1_按钮.py", label="Page 1", icon="1️⃣")

if "counter" not in st.session_state:
    st.session_state.counter = 0

if st.button("Say hello"):
    st.session_state.counter += 1
    st.write(f"Why hello there {str(st.session_state.counter )}"  )
else:
    st.write("Goodbye")

if st.button("Aloha", type="tertiary"):
    st.write("Ciao")
